package cn.wgx.module.sys.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysUserExample {
    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    protected String orderByClause;

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    protected boolean distinct;

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public SysUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public SysUserExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public SysUserExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public static Criteria newAndCreateCriteria() {
        SysUserExample example = new SysUserExample();
        return example.createCriteria();
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUser_idIsNull() {
            addCriterion("t.user_id is null");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNotNull() {
            addCriterion("t.user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUser_idEqualTo(Integer value) {
            addCriterion("t.user_id =", value, "user_id");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUser_idEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.user_id = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUser_idNotEqualTo(Integer value) {
            addCriterion("t.user_id <>", value, "user_id");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUser_idNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.user_id <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThan(Integer value) {
            addCriterion("t.user_id >", value, "user_id");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUser_idGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.user_id > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("t.user_id >=", value, "user_id");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUser_idGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.user_id >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUser_idLessThan(Integer value) {
            addCriterion("t.user_id <", value, "user_id");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUser_idLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.user_id < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUser_idLessThanOrEqualTo(Integer value) {
            addCriterion("t.user_id <=", value, "user_id");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUser_idLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.user_id <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUser_idIn(List<Integer> values) {
            addCriterion("t.user_id in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotIn(List<Integer> values) {
            addCriterion("t.user_id not in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idBetween(Integer value1, Integer value2) {
            addCriterion("t.user_id between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotBetween(Integer value1, Integer value2) {
            addCriterion("t.user_id not between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNull() {
            addCriterion("t.username is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("t.username is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("t.username =", value, "username");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUsernameEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.username = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("t.username <>", value, "username");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUsernameNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.username <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("t.username >", value, "username");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUsernameGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.username > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("t.username >=", value, "username");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUsernameGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.username >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("t.username <", value, "username");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUsernameLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.username < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("t.username <=", value, "username");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUsernameLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.username <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("t.username like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("t.username not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("t.username in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("t.username not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("t.username between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("t.username not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andPwdIsNull() {
            addCriterion("t.pwd is null");
            return (Criteria) this;
        }

        public Criteria andPwdIsNotNull() {
            addCriterion("t.pwd is not null");
            return (Criteria) this;
        }

        public Criteria andPwdEqualTo(String value) {
            addCriterion("t.pwd =", value, "pwd");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andPwdEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.pwd = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPwdNotEqualTo(String value) {
            addCriterion("t.pwd <>", value, "pwd");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andPwdNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.pwd <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPwdGreaterThan(String value) {
            addCriterion("t.pwd >", value, "pwd");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andPwdGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.pwd > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPwdGreaterThanOrEqualTo(String value) {
            addCriterion("t.pwd >=", value, "pwd");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andPwdGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.pwd >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPwdLessThan(String value) {
            addCriterion("t.pwd <", value, "pwd");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andPwdLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.pwd < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPwdLessThanOrEqualTo(String value) {
            addCriterion("t.pwd <=", value, "pwd");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andPwdLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.pwd <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPwdLike(String value) {
            addCriterion("t.pwd like", value, "pwd");
            return (Criteria) this;
        }

        public Criteria andPwdNotLike(String value) {
            addCriterion("t.pwd not like", value, "pwd");
            return (Criteria) this;
        }

        public Criteria andPwdIn(List<String> values) {
            addCriterion("t.pwd in", values, "pwd");
            return (Criteria) this;
        }

        public Criteria andPwdNotIn(List<String> values) {
            addCriterion("t.pwd not in", values, "pwd");
            return (Criteria) this;
        }

        public Criteria andPwdBetween(String value1, String value2) {
            addCriterion("t.pwd between", value1, value2, "pwd");
            return (Criteria) this;
        }

        public Criteria andPwdNotBetween(String value1, String value2) {
            addCriterion("t.pwd not between", value1, value2, "pwd");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("t.type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("t.type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("t.type =", value, "type");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andTypeEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.type = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("t.type <>", value, "type");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andTypeNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.type <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("t.type >", value, "type");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andTypeGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.type > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("t.type >=", value, "type");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andTypeGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.type >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("t.type <", value, "type");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andTypeLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.type < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("t.type <=", value, "type");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andTypeLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.type <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("t.type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("t.type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("t.type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("t.type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("t.createUserId is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("t.createUserId is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Integer value) {
            addCriterion("t.createUserId =", value, "createUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateUserIdEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createUserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Integer value) {
            addCriterion("t.createUserId <>", value, "createUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateUserIdNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createUserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Integer value) {
            addCriterion("t.createUserId >", value, "createUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateUserIdGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createUserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("t.createUserId >=", value, "createUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateUserIdGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createUserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Integer value) {
            addCriterion("t.createUserId <", value, "createUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateUserIdLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createUserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("t.createUserId <=", value, "createUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateUserIdLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createUserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Integer> values) {
            addCriterion("t.createUserId in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Integer> values) {
            addCriterion("t.createUserId not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("t.createUserId between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("t.createUserId not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("t.createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("t.createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("t.createDate =", value, "createDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateDateEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createDate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("t.createDate <>", value, "createDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateDateNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createDate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("t.createDate >", value, "createDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateDateGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createDate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("t.createDate >=", value, "createDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateDateGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createDate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("t.createDate <", value, "createDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateDateLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createDate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("t.createDate <=", value, "createDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andCreateDateLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.createDate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("t.createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("t.createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("t.createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("t.createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNull() {
            addCriterion("t.updateUserId is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNotNull() {
            addCriterion("t.updateUserId is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdEqualTo(Integer value) {
            addCriterion("t.updateUserId =", value, "updateUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateUserIdEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateUserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotEqualTo(Integer value) {
            addCriterion("t.updateUserId <>", value, "updateUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateUserIdNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateUserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThan(Integer value) {
            addCriterion("t.updateUserId >", value, "updateUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateUserIdGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateUserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("t.updateUserId >=", value, "updateUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateUserIdGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateUserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThan(Integer value) {
            addCriterion("t.updateUserId <", value, "updateUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateUserIdLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateUserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("t.updateUserId <=", value, "updateUserId");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateUserIdLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateUserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIn(List<Integer> values) {
            addCriterion("t.updateUserId in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotIn(List<Integer> values) {
            addCriterion("t.updateUserId not in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("t.updateUserId between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("t.updateUserId not between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("t.updateDate is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("t.updateDate is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("t.updateDate =", value, "updateDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateDateEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateDate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("t.updateDate <>", value, "updateDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateDateNotEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateDate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("t.updateDate >", value, "updateDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateDateGreaterThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateDate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("t.updateDate >=", value, "updateDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateDateGreaterThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateDate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("t.updateDate <", value, "updateDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateDateLessThanColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateDate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("t.updateDate <=", value, "updateDate");
            return (Criteria) this;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andUpdateDateLessThanOrEqualToColumn(SysUser.Column column) {
            addCriterion(new StringBuilder("t.updateDate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("t.updateDate in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("t.updateDate not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("t.updateDate between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("t.updateDate not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUsernameLikeInsensitive(String value) {
            addCriterion("upper(t.username) like", value.toUpperCase(), "username");
            return (Criteria) this;
        }

        public Criteria andPwdLikeInsensitive(String value) {
            addCriterion("upper(t.pwd) like", value.toUpperCase(), "pwd");
            return (Criteria) this;
        }
    }

    /**
     *
     * @mbg.generated do_not_delete_during_merge Thu Apr 16 16:23:45 CST 2020
     */
    public static class Criteria extends GeneratedCriteria {
        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        private SysUserExample example;

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        protected Criteria(SysUserExample example) {
            super();
            this.example = example;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public SysUserExample example() {
            return this.example;
        }

        /**
         *
         * @mbg.generated Thu Apr 16 16:23:45 CST 2020
         */
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public interface ICriteriaAdd {
            /**
             *
             * @mbg.generated Thu Apr 16 16:23:45 CST 2020
             */
            Criteria add(Criteria add);
        }
    }

    /**
     *
     * @mbg.generated Thu Apr 16 16:23:45 CST 2020
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}